package com.ruoyi.common.enums;

/**
 * 业务状态码
 */
public enum ErrorMsg {

    COMMON_ERROR_USER_NOT_CODE(1007, "用户不存在或验证码错误"),
    COMMON_ERROR_USER_NOT_EXIST(1001, "用户不存在或密码错误"),
    COMMON_ERROR_USER_PASSWORD_ERROR(1002, "密码输入错误{0}次"),
    COMMON_ERROR_USER_LOCKED(1003, "密码输入错误{0}次，帐户锁定10分钟"),
    COMMON_ERROR_USER_CAPTCHA_ERROR(1004, "验证码错误"),
    COMMON_ERROR_USER_CAPTCHA_EXPIRE(1005, "验证码已失效"),
    COMMON_ERROR_USER_MUST_PUT(1006, "必须填写"),
    COMMON_ERROR_MODEL_ERROR(1007, "模板格式错误"),
    COMMON_ERROR_PARAM_ERROR(101, "参数错误"),
    BASE_QUESTION_IMPORT_SUCCESS(200, "导入完成，共计导入{0}道题目"),
    TEST_PAPER_NOT_EXIST(210, "用户考试试卷不存在"),
    PLAN_MEMBER_ERROR_NULL(211, "用户考试信息不存在"),
    PLAN_NOT_RELATE_ERROR_HAS_BEAN_MEMBER(227, "当前考试安排已关联培训班考试人员，不允许修改为[不关联]培训计划"),
    PLAN_NOT_RELATE_ERROR_ALL_NULL(228, "选择不关联培训计划时，部门、岗位、人员必选其一"),
    PLAN_MEMBER_ERROR_NOT_MATCH(212, "用户与考试信息不匹配"),
    PLAN_MEMBER_TEST_PAPER_BEEN_SUBMIT(213, "该试卷已提交，请勿重复交卷"),
    PLAN_MEMBER_TEST_PAPER_NEED_CORRECT(200, "该试卷包含人工打分题目，请等待批改试卷"),
    PLAN_MEMBER_TEST_PAPER_SUBMIT_SUCCESS(200, "交卷成功"),
    PLAN_MEMBER_TEST_PAPER_CORRECT_DONE(200, "批改完成"),
    PLAN_MEMBER_TEST_PAPER_ERROR(214, "试卷信息错误"),
    PLAN_MEMBER_TEST_PAPER_RESIT_COUNT(215, "已达到最大补考次数"),
    PLAN_MEMBER_TEST_PAPER_CORRECT_NOT_ALLOW(216, "该题目无需批改"),
    PLAN_MEMBER_TEST_PAPER_NO_LEFT_TIME(217, "该考试已无剩余时间，系统已自动结束考试"),
    PLAN_MEMBER_TEST_PAPER_HAS_EXIST(218, "试卷已加入到用户考试计划，请先删除用户考试计划"),
    PLAN_MEMBER_TEST_PAPER_MEMBER_PLAN_HAS_EXIST(219, "考试计划已加入到用户考试计划，请先删除用户考试"),
    PLAN_MEMBER_TEST_PAPER_MEMBER_PLAN_NOT_EXIST(220, "用户考试计划不存在"),
    PLAN_MEMBER_TEST_PAPER_BEEN_SUBMIT_2(221, "该试卷已提交，不可以考试"),
    PLAN_MEMBER_TEST_PAPER_STATUS_ERROR_WAIT_CORRECT(222, "试卷等待审批，不可开始考试"),
    PLAN_MEMBER_TEST_PAPER_STATUS_ERROR_PASSED(223, "试卷已通过，无需考试"),
    PLAN_MEMBER_TEST_PAPER_STATUS_ERROR_NOT_PASSED(223, "试卷未通过，请明日再次考试"),
    PLAN_MEMBER_STATUS_DOING(223, "考试已开始"),
    PLAN_MEMBER_TEST_PAPER_NOT_BEGIN(224, "考试计划未开始"),
    PLAN_MEMBER_TEST_PAPER_CLASS_USER_NOT_EXIST(225, "未加入任何培训班，无法考试"),
    PLAN_MEMBER_TEST_PAPER_CLASS_USER_NOT_FINISH(226, "未完成课时任务，无法考试"),
    BASE_QUESTION_IMPORT_STEM_ERROR_NULL(301, "第{0}行：题干不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_TYPE_ERROR_NULL(302, "第{0}行：题目类型不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_ANALYSIS_ERROR_NULL(302, "第{0}行：题目解析不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_SCORE_ERROR_NULL(303, "第{0}行：题目分值不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_ANSWER_ERROR_NULL(304, "第{0}行：题目正确答案不能为空"),
    BASE_QUESTION_IMPORT_WEIGHT_ERROR_NULL(304, "第{0}行：权重为空"),
    BASE_QUESTION_IMPORT_QUESTION_DIFFICULTY_ERROR_NULL(305, "第{0}行：题目难度不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_CATEGORY_ERROR_NULL(306, "第{0}行：题目分类不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_QUESTION_TYPE_ERROR(307, "第{0}行：题目类型错误"),
    BASE_QUESTION_IMPORT_QUESTION_PROFESSION_TYPE_ERROR_NULL(307, "第{0}行：所属工种不能为空"),
    BASE_QUESTION_IMPORT_QUESTION_PROFESSION_TYPE_ERROR(307, "第{0}行：所属工种未找到，请确认系统中是否存在"),
    BASE_QUESTION_IMPORT_QUESTION_POST_TYPE_ERROR(307, "第{0}行：所属岗位未找到，请确认系统中是否存在"),
    BASE_QUESTION_IMPORT_QUESTION_ANSWER_FORMAT_ERROR(308, "第{0}行：答案格式错误(单选题答案示例：A,多选题答案示例：A|B|C|D)"),
    BASE_QUESTION_IMPORT_QUESTION_OPTION_ERROR_NULL(309, "第{0}行：选项A不能为空(至少包含一个选项)"),
    BASE_QUESTION_IMPORT_QUESTION_CATEGORY_ERROR(315, "第{0}行：无效的分类名称"),
    BASE_QUESTION_IMPORT_QUESTION_ERROR_NULL(310, "导入题目不可为空"),
    BASE_QUESTION_IMPORT_QUESTION_CATEGORY_NULL(314, "暂无工种类型，请先维护工种分类"),
    BASE_QUESTION_IMPORT_QUESTION_POST_NULL(314, "暂无岗位类型，请先维护岗位分类"),
    TEST_PAPER_PARAM_RANDOM_NULL(311, "组卷参数错误"),
    TEST_PAPER_QUESTION_NUM_NOT_ENOUGH(312, "{0}题目数量不足"),
    TEST_PAPER_QUESTION_NUM_NOT(312, "该类型题目暂未录入系统"),
    TEST_PAPER_QUESTION_IMPORT_EXCEPTION(313, "导入数据错误，请检查文档格式"),
    CLASS_ATTACHMENT_NOT_EXIST(410, "附件不存在"),
    CLASS_MONITOR_NOT_EXIST(411, "监控不存在"),
    CLASS_NOT_EXIST(412, "课程不存在"),
    CLASS_SERIES_NOT_EXIST(412, "课程系列课不存在"),
    PLAN_EXPECT_CLASS_NOT_EXIST(510, "培训计划不存在"),
    PLAN_EXPECT_CLASS_MAX(511, "培训预计开班计划大于了设置的期数"),
    PLAN_USER_CLASS_NOT_EXIST(512, "暂未加入任何培训班，无法学习"),
    PLAN_USER_CLASS_IMPORT_REPEAT_ERROR(513, "第{0}行，考试信息重复，请修改"),
    PLAN_USER_CLASS_IMPORT_USER_NULL(514, "第{0}行，用户工号不能为空"),
    PLAN_USER_CLASS_IMPORT_SCORE_NULL(515, "第{0}行，用户得分不能为空"),
    PLAN_USER_CLASS_IMPORT_RESIT_NULL(516, "第{0}行，是否补考格式错误"),
    PLAN_USER_CLASS_IMPORT_TOTAL_HOUR_NULL(517, "第{0}行，完成课时格式错误"),
    PLAN_USER_CLASS_IMPORT_ERROR(518, "数据格式错误"),
    PLAN_CLASS_NOT_EXIST(524, "未查询到培训班"),
    PLAN_CLASS_DOWNLOAD_ERROR(526, "批量导出附件错误"),
    PLAN_CLASS_FILES_NOT_EXIST(525, "未找到培训班附件"),
    CLASS_PROHIBIT(522, "该课程已经开始学习,禁止进行此操作"),
    CLASS_NO_UPDATE(523, "该课程已审核通过，禁止进行此操作"),
    MESSAGE_ERROR_NOT_EXIST(601, "消息不存在"),
    MESSAGE_USER_ERROR_NOT_EXIST(602, "用户消息不存在"),
    MAP_STAGE_MEMBER_STAGE_NOT_EXIST(603, "学习地图阶段新信息不存在"),
    MAP_STAGE_MEMBER_MAP_NOT_EXIST(604, "学习地图信息不存在"),
    MAP_STAGE_MEMBER_MAP_HAS_EXIST(604, "该学习计划已存在"),
    SURVEY_NOT_EXIST(701, "问卷调查已失效或已删除"),
    SURVEY_HAS_NO_ANSWER(702, "问卷调查未包含任何答案"),
    SURVEY_STATUS_ERROR(703, "问卷调查已交卷，请勿重复提交"),
    SURVEY_QUESTION_NULL(704, "未包含任何题目，无法保存"),
    FORMAT_PHONE_ERROR(801, "手机号码格式异常"),
    FORMAT_FOR_USER_NAME_ERROR(802, "用户工号：{0}格式错误"),
    FORMAT_FOR_ALLOWANCE_NULL(836, "第{0}行：津贴未填写"),
    FORMAT_FOR_RESULT_ERROR(837, "第{0}行：考核结果未填写"),
    FORMAT_FOR_MASTER_CONDITION_ERROR(838, "第{0}行：师傅条件未填写"),
    FORMAT_FOR_USER_NAME_ERROR_1(802, "用户工号格式错误"),
    FORMAT_FOR_LIST_NULL(803, "导入错误：导入数据为空"),
    FORMAT_MASTER_USER_NAME_NULL(804, "第{0}行：师傅工号为空"),
    FORMAT_MASTER_USER_NAME_NOT_EXIST(836, "第{0}行：用户师徒结对信息不存在"),
    FORMAT_MASTER_USER_NAME_HAS_EXIST(837, "{0}用户师徒结对信息已存在"),
    FORMAT_MASTER_REAL_NAME_NULL(805, "第{0}行：师傅姓名为空"),
    FORMAT_APPRENTICE_USER_NAME_NULL(806, "第{0}行：徒弟工号为空"),
    FORMAT_APPRENTICE_REAL_NAME_NULL(807, "第{0}行：徒弟姓名为空"),
    FORMAT_INTO_DATE_NULL(808, "第{0}行：入司时间为空"),
    FORMAT_TERM_NULL(809, "第{0}行：学习期限为空"),
    FORMAT_MASTER_COUNT_OVER_3(810, "师傅已超过3个徒弟，请重新指定：{0}"),
    FORMAT_BASIC_SKILL_POST_NAME_NULL(811, "第{0}行：岗位未填写"),
    FORMAT_BASIC_SKILL_REAL_NAME_NULL(812, "第{0}行：姓名未填写"),
    FORMAT_BASIC_SKILL_USER_NAME_NULL(813, "第{0}行：工号未填写"),
    FORMAT_BASIC_SKILL_INTO_DATE_NULL(814, "第{0}行：入司日期未填写"),
    FORMAT_BASIC_SKILL_TRAIN_PERIOD_NULL(815, "第{0}行：培训时段未填写"),
    FORMAT_BASIC_SKILL_ORIGINAL_POST_NAME_NULL(816, "第{0}行：原岗位未填写"),
    FORMAT_BASIC_SKILL_CURRENT_POST_NAME_NULL(817, "第{0}行：现岗位未填写"),
    FORMAT_BASIC_SKILL_PREV_CERT_DATE_NULL(818, "第{0}行：前次取证日期未填写"),
    FORMAT_BASIC_SKILL_REPEAT_ERROR(819, "第{0}行：考核申请已存在，请先完成后再导入"),
    FORMAT_BASIC_SKILL_REPEAT_ERROR_1(819, "考核申请已存在，请先完成后再导入"),
    FORMAT_BASIC_SKILL_EXCEL_REPEAT_ERROR(820, "第{0}行：用户工号重复：{1}"),
    FORMAT_BASIC_SKILL_THEORY_RESULT_NULL(821, "第{0}行：理论成绩未填写"),
    FORMAT_BASIC_SKILL_OPERATION_RESULT_NULL(822, "第{0}行：实操成绩未填写"),
    FORMAT_BASIC_SKILL_EXAM_TIME_NULL(823, "第{0}行：考试日期(时段)未填写"),
    FORMAT_BASIC_SKILL_RECORD_POINTS_NULL(824, "第{0}行：要点未填写"),
    FORMAT_BASIC_SKILL_RECORD_THEORY_NULL(825, "第{0}行：理论课时未填写"),
    FORMAT_BASIC_SKILL_RECORD_OPERATION_NULL(826, "第{0}行：实操课时未填写"),
    FORMAT_BASIC_SKILL_RECORD_TYPE_NAME_NULL(836, "第{0}行：学时类型未填写"),
    FORMAT_BASIC_SKILL_RECORD_TYPE_NAME_ERROR(837, "第{0}行：学时类型填写错误，只能是以下之一：[新训、复岗、转岗、复审]"),
    FORMAT_BASIC_SKILL_RECORD_RESIT_COUNT_NULL(838, "第{0}行：补考次数未填写或格式错误，只能是以下之一：[0、1、2]"),
    FORMAT_BASIC_SKILL_RECORD_SECOND_IMPORT_ERROR(839, "第{0}行：用户考试结果已通过，此次第二次导入补考次数必须是0"),
    FORMAT_BASIC_SKILL_RECORD_SECOND_IMPORT_ERROR_1(840, "{0}用户考试结果已通过，此次第二次导入补考次数必须是0"),
    FORMAT_BASIC_SKILL_RECORD_CONTENT_NULL(827, "第{0}行：培训内容未填写"),
    FORMAT_BASIC_SKILL_RECORD_NOT_EXIST(828, "用户{0}：培训学时数据不存在"),
    FORMAT_BASIC_SKILL_RECORD_NOT_EXIST_1(828, "用户学时数据不存在"),
    FORMAT_BASIC_SKILL_RECORD_NOT_ENOUGH(829, "用户{0}：{1}培训学时不足，请添加用户学习学时"),
    FORMAT_BASIC_SKILL_REQUEST_NOT_EXIST(830, "第{0}行：考核申请单不存在，无法导入成绩"),
    FORMAT_BASIC_SKILL_REQUEST_NOT_EXIST_1(830, "考核申请单不存在，无法导入成绩"),
    FORMAT_BASIC_SKILL_REQUEST_HAS_EXIST(831, "新训考核申请已存在"),
    FORMAT_BASIC_SKILL_RECORD_NOT_ENOUGH_SINGLE(832, "用户学时不足"),
    FORMAT_BASIC_SKILL_RECORD_NOT_EXIST_SINGLE(833, "用户学时不存在"),
    FORMAT_BASIC_SKILL_REQUEST_NOT_EXIST_SINGLE(834, "考核申请单不存在，无法添加成绩"),
    FORMAT_BASIC_SKILL_REQUEST_STATUS_ERROR(835, "{0}用户已通过考试或已达到最大补考次数，不允许导入考核申请"),
    FORMAT_BASIC_SKILL_REQUEST_STATUS_ERROR_1(835, "用户已通过考试或已达到最大补考次数，不允许新增考核申请"),
    ACTIVITY_REGIST_DENY_REGISTED(836, "已报名，无需重复报名"),
    ACTIVITY_REGIST_DENY_REGIST_NOT_START(837, "活动未开始报名"),
    ACTIVITY_REGIST_DENY_REGISTENDED(838, "活动报名已结束"),
    ACTIVITY_REGIST_DENY_REGIST_MAXED(839, "名额已报满"),
    ACTIVITY_REGIST_DENY_DEPT_NOT_MATCH(840, "指定人员可报名"),
    ACTIVITY_UN_REGIST_DENY(841, "尚未报名，无需取消报名"),
    ACTIVITY_SIGN_DENY(842, "尚未报名，无法签到"),

    HUIXIN_SEND_ERROR(901, "慧信消息发送失败，错误信息{0}"),

    PRAISE_DENY(843, "已点赞过，请刷新页面"),
    NOT_FOUND(844, "未发现"),
    TEACHER_NOT_EXIST(845, "教师不存在"),
    TRAIN_CLASS_NOT_EXIST(846, "该公开课不存在"),
    NOT_LEATHER_DENY_TEACH(847, "您还不是讲师，无法进行上传课程，请联系管理员！"),
    TRAIN_CLASS_NO_FILES(848, "课程未上传课件"),
    TRAIN_CLASS_NO_SERIR(849, "课程为系列课，请上传系列课！"),
    CLASS_FILE_UPLOAD_FAIL(850, "课件上传异常"),
    FILE_NOT_EXIST(852, "附件不存在"),
    FILE_UPLOAD_FAIL(853, "课件上传异常"),

    LOGIN_PHONE_NOT_EXIST(1100, "当前手机号未匹配用户，请联系管理员"),
    LOGIN_EMPLOYEE_NOT_EXIST(1100, "当前用户未匹配用户，请联系管理员"),
    LOGIN_PHONE_HUIXIN_EXIST(1100, "彗信登录失败");


    private final Integer code;
    private final String info;

    ErrorMsg(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
